package com.ruoyi.student.mapper;

import java.util.List;
import com.ruoyi.student.domain.Student;
import org.apache.ibatis.annotations.Param;

/**
 * studentOptMapper接口
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public interface StudentMapper 
{
    /**
     * 查询studentOpt
     * 
     * @param studentId studentOpt主键
     * @return studentOpt
     */
    public Student selectStudentByStudentId(Long studentId);

    /**
     * 查询studentOpt列表
     * 
     * @param student studentOpt
     * @return studentOpt集合
     */
    public List<Student> selectStudentList(@Param("student") Student student);
    List<Student> selectStudentByDeptId(Long deptId);
    /**
     * 新增studentOpt
     * 
     * @param student studentOpt
     * @return 结果
     */
    public int insertStudent(Student student);

    /**
     * 修改studentOpt
     * 
     * @param student studentOpt
     * @return 结果
     */
    public int updateStudent(Student student);
    Student selectStudentByUserName(String username);
    Student selectStudentByUserId(Long id);
    /**
     * 删除studentOpt
     * 
     * @param studentId studentOpt主键
     * @return 结果
     */
    public int deleteStudentByStudentId(Long studentId);

    /**
     * 批量删除studentOpt
     * 
     * @param studentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStudentByStudentIds(Long[] studentIds);
}
